import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { SharedModule } from '../../../shared/shared.module';
import { XtbgComponent } from './xtbg.component';

@NgModule({
  imports: [
    SharedModule,
    RouterModule.forChild([
      {
        path: '',
        component: XtbgComponent,
        children: [
          { path: 'zdrwgzqd/:mode', loadChildren: () => import('./zdrwgzqd/zdrwgzqd.module').then(m => m.ZdrwgzqdModule), data: { title: '任务工作清单' } },
          { path: 'splc/:mode', loadChildren: () => import('./splc/splc.module').then(m => m.SplcModule), data: { title: '审批流程' } },
          { path: 'cadDrawings', loadChildren: () => import('../cadDrawings/cadDrawings.module').then(m => m.CadDrawingsModule), data: { title: 'CAD图纸' } },
          { path: 'cableRoute', loadChildren: () => import('../cableRoute/cableRoute.module').then(m => m.CableRouteModule), data: { title: '电缆径路' } },
          { path: '**', redirectTo: 'zdrwgzqd/duanquery' }]
      },
    ])
  ],
  declarations: [
    XtbgComponent,
  ],
  exports: [RouterModule]
})
export class XtbgModule { }
